package com.lx.input.db.jdbc;

import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author lixing
 * @date 2021/7/12 19:18
 */
@Component("dbJdbcWriterDemo")
public class DBJdbcWriterDemo implements ItemWriter<Person> {

    @Override
    public void write(List<? extends Person> items) throws Exception {
        for(Person person:items) {
            System.out.println(person);
        }
    }

}
